package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.hosp.bean.Actor;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/25 19:36
 */
public interface ActorRepository extends MongoRepository<Actor, String> {
    // 自定义查询方法需要符合springData规范
    public List<Actor> findByActorNameLikeAndGender(String actorName, boolean gender);
}
